import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state:{
    token:null,
    user_type:null,
    user_name:null
  },
  mutations:{
    setToken(state,token){
      return state.token = token;
    },
    setUserType(state,user_type){
      return state.user_type = user_type;
    },
    setUserName(state,user_name){
      return state.user_name = user_name;
    }
  }
})
